#ifndef _INTERFACE_H_
#define _INTERFACE_H_

#include "data.h"

Picture loadPic(const char* path);

int initSDL(void);

void freeResources(void);

void paint(void);

int loadResources(void);

void setPicDstRect(Picture* picture, int x, int y, int w, int h);

void setPicSrcRect(Picture* picture, int x, int y, int w, int h);

void freeSDL(void);

void paintPic(Picture* picture);

void paintPlain(void);

Picture* chosPic( int i, int j);

void paintScore(void);

void playMusic(void);

int loadWindows(int x, int y);

void paintBackground(void);

void paintButton(void);

void paintEnjoy(void);

void paintTime(void);

void paintThreeNumber(void);

#endif // !_INTERFACE_H_
